package com.tulele.vtool.config;

import org.apache.tomcat.util.threads.ThreadPoolExecutor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.sql.*;
import java.util.concurrent.Executor;

@Configuration
public class JinPaiDataConfig {

    /*@Bean
    public Statement getStatement() throws ClassNotFoundException, SQLException {
        String driver = "com.mysql.cj.jdbc.Driver";
        // URL指向要访问的数据库名scutcs
        String url = "jdbc:mysql://weishan.jinpai678.cn:3306/weishan_jinpai67";
        // MySQL配置时的用户名
        String user = "weishan_jinpai67";
        // Java连接MySQL配置时的密码
        String password = "DL83CkEJdcDbRW7h";

        // 加载驱动程序
        Class.forName(driver);
        // 连续数据库
        Connection conn = DriverManager.getConnection(url, user, password);
        if (!conn.isClosed())
            System.out.println("Succeeded connecting to the Database!");
        // statement用来执行SQL语句
        Statement statement = conn.createStatement();
        return statement;
    }*/

}
